<link rel="stylesheet" href="${basePath}static/css/user.css">
<script src="${basePath}static/js/userBank.js"></script>
<table width="100%" class="tab-accuont mt10"> 
	<tr>
		<th><b>类型</b></th>
		<th><b>账号</b></th>
		<th><b>姓名</b></th>
		<th><b>开户行</b></th>
		<th style="text-align: center;"><b>状态</b></th>
		<th style="text-align: center;"><b>默认</b></th>
		<th style="text-align: center;"><b>操作</b></th>
	</tr>
	 <tbody id="userBankList">
	 <#if userinfo.coinPassword?exists&&userinfo.coinPassword != ''>
	 <#if userBanks?exists>
     <#list userBanks as Bank>
	 <tr data-uid="${Bank.id}">
		<td>${Bank.bankname}</td>
		<td>${Bank.account}</td>
		<td>${Bank.username}</td>
		<td>${Bank.openingname}</td>
		<td style="text-align: center;">
		     <input type="checkbox" value="Y" name="status" <#if Bank.status=="Y">checked</#if>></input> 
        </td>
        <td style="text-align: center;"> 
             <input type="checkbox" value="Y" name="userBankDefault" <#if Bank.isDefault=="Y">checked</#if>></input> 
        </td>
		<td> 
             <a data-flag="data-user-blank" title="设置个人银行数据">设置</a>
             &nbsp;&nbsp;
             <a href="${basePath}home#user/goModUserBank/${Bank.id}" title="修改当前银行数据">修改</a>
        </td>
	</tr>
	</#list> 
	</#if>
	   <tr> 
	    	<td class="tr" colspan="7"><input type="button" id="goAddUserBank" class="btn-b" value="添加绑定银行" /></td> 
	     </tr>
	 <#else>
	  <tr>
	      <td class="tr" colspan="7" style="text-align: center">温馨提示：设置银行信息要用资金密码，您尚未设置资金密码！
	          <a href="${basePath}home#/user/coinPasswd">设置资金密码>></a>
	      </td> 
	  </tr>
	 </#if>
            </tbody> 

</table>